const SnowflakeId = require("snowflake-id")


const getUUID = () => {
    var snowflake = SnowflakeId({
        mid: 42,
        offset: (2019 - 1970) * 31536000 * 1000
    });
    console.log("获取雪花id\n", snowflake);
    let id = snowflake.generate();
    return id;
    // var flakeIdGen = new FlakeId();
    // return flakeIdGen;
}
module.exports = {
    getUUID
}